﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MD5Format
{
    public partial class MainForm : Form
    {
        public MainForm()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            string md5 = textBox1.Text;
            StringBuilder buffer = new StringBuilder();

            for (int i = 0; i < md5.Length; i += 2)
            {
                buffer.Append("0x");
                buffer.Append(md5[i].ToString());
                buffer.Append(md5[i + 1].ToString());
                buffer.Append(", ");
            }
            textBox2.Text = buffer.ToString();
        }
    }
}
